Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run tests only inside the worldborder #7

Merged
merged 3 commits into from
Sep 27, 2024
Merged

Conversation

aksiome
Copy link
Contributor

@aksiome aksiome commented Mar 25, 2024

The goal of this PR is to fix #5 !

@misode
Copy link
Owner

misode commented Mar 25, 2024

Is it still possible for the tests to spill out into the world border even though the start pos was inside the world border?

@aksiome
Copy link
Contributor Author

aksiome commented Mar 26, 2024

Sadly yes, this only ensure that the starting position is inside the worldborder. I can try to take into account the size needed to run the tests but i'm not really sure what should happen if the worldborder is too small. Maybe just throw an error and abort the tests?

@misode
Copy link
Owner

misode commented Sep 27, 2024

There might still be some edge cases because the tests could be started at the edge of the world border and go outside it, but I'll merge this anyways.

@misode misode merged commit cefd92f into misode:1.20 Sep 27, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Running test from the command line does not respect the worldborder
2 participants